<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>连接到共享工作者线程</title>
</head>
<body>
  <script>
    for (let i = 0; i < 5; i++) {
      new SharedWorker('./27_3_3_sharedWorker.js');
    }

    // connected 1 times
    // connected 2 times
    // connected 3 times
    // connected 4 times
    // connected 5 times
  </script>
</body>
</html>